-- GENERATED SPELL FOR [Reanimated Bones] --


function spell0_18700(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18700', 544, 1)
end

function spell1_18700(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(13444,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18700', 30288, 1)
end

function Sorts_18700(pUnit, Event)
local choix_sorts_18700 = math.random(0, 1)
if choix_sorts_18700 == 0 then
pUnit:RegisterEvent('spell0_18700', 1, 1)
end
if choix_sorts_18700 == 1 then
pUnit:RegisterEvent('spell1_18700', 1, 1)
end
end

function mob18700_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18700', math.random(1500, 3000), 1)
end

function mob18700_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18700_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18700_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18700, 1, 'mob18700_Action')
RegisterUnitEvent(18700, 2, 'mob18700_Leave')
RegisterUnitEvent(18700, 3, 'mob18700_Kill')
RegisterUnitEvent(18700, 4, 'mob18700_Die')
